package com.bdsoft.actions.RoleManage.Dao;

import com.bdsoft.actions.RoleManage.DTO.RoleDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface RoleMapper {
    List<Map<String,Object>> selectRoleByParams(String id, String name);
    int addRole(RoleDTO roleDTO);
    int updateRoleById(RoleDTO roleDTO);
    int deleteRoleById(String id);
    List<Map<String,Object>> selectRoleByUserId(@Param("userId") String userId);
    List<Map<String,Object>> selectMenuByRoleId(String roleId);
}